package com.haixiaoke.saas.enterprise.apartment.controller;

import com.haixiaoke.saas.apartment.domain.Require;
import com.haixiaoke.saas.apartment.service.IRequireService;
import com.haixiaoke.saas.common.core.domain.AjaxResult;
import com.haixiaoke.saas.system.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 房间要求种类Controller
 *
 * @author panda
 * @date 2024-03-21
 */
@RestController
@RequestMapping("/enterprise/apartment/require")
public class EnterpriseRequireController extends BaseController {
    @Autowired
    private IRequireService requireService;

    /**
     * 查询房间要求种类列表
     */
    @GetMapping("/list")
    public AjaxResult list(Require require) {
        List<Require> list = requireService.selectRequireList(require);
        return success(list);
    }
}
